﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace QS.Game.Renderer
{
    class QRendererCollection
    {
        private static GraphicsDevice m_GraphicsDevice;
        private static ContentManager m_ContentManager;

        private static QMetalRenderer m_MetalRenderer;
        public static QMetalRenderer MetalRenderer
        {
            get
            {
                if (m_MetalRenderer == null)
                    m_MetalRenderer = new QMetalRenderer(m_GraphicsDevice, m_ContentManager);
                return m_MetalRenderer;
            }
            private set
            {
                m_MetalRenderer = value;
            }
        }

        private static QGlassRenderer m_GlassRenderer;
        public static QGlassRenderer GlassRenderer
        {
            get
            {
                if (m_GlassRenderer == null)
                    m_GlassRenderer = new QGlassRenderer(m_GraphicsDevice, m_ContentManager);
                return m_GlassRenderer;
            }
            private set
            {
                m_GlassRenderer = value;
            }
        }


        public static void Initialize(GraphicsDevice graphicsDevice, ContentManager contentManager)
        {
            m_GraphicsDevice = graphicsDevice;
            m_ContentManager = contentManager;
        }



    }
}
